package com.first.util;

import com.kckj.comm.util.KckjLog;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

/**
 * @author: 范超强
 * @date: 2021/5/31
 */
@Aspect
@Component
@Slf4j
public class LogAnnotationAspect {

    @AfterReturning(value = "@annotation(point)",returning = "result")
    public void afterReturn(JoinPoint jp, KckjLog point, Object result) {

        System.out.println("******************deAround"+jp.getArgs()+"jp****"+jp.getTarget());
    }
}
